import request from '@/utils/request'

// 金融商贷客户保存
export function bizloancustomerSave(data) {
  return request({
    url: `/customer/bizloancustomer/customer/save`,
    method: 'post',
    data
  })
}

/**
 * 金融商贷客户列表
 * @param {*} data
 * @returns
 */
export function getBizloancustomerList(data) {
  return request({
    url: '/customer/bizloancustomer/customer/list',
    method: 'post',
    data: data
  })
}
/**
 * 金融商贷客户详情
 * @param {*} data
 * @returns
 */
export function getBizloancustomerInfo(data) {
  return request({
    url: '/customer/bizloancustomer/customer/info',
    method: 'post',
    data: data
  })
}
/**
 * 金融商贷客户删除
 * @param {*} data
 * @returns
 */
export function bizloancustomerDel(params) {
  return request({
    url: '/customer/bizloancustomer/customer/delete',
    method: 'delete',
    params
  })
}
/**
 * 金融商贷详情
 * @param {*} data
 * @returns
 */
export function getCustomerapplyInfo(data) {
  return request({
    url: '/customer/bizloancustomer/customerapply/info',
    method: 'post',
    data: data
  })
}

/**
 * 商贷客户申请保存/修改
 * @param {*} data
 * @returns
 */
export function customerapplySaveOrUpdate(data) {
  return request({
    url: '/customer/bizloancustomer/customerapply/saveOrUpdate',
    method: 'post',
    data
  })
}
/**
 * 获取商贷客户申请列表
 * @param {*} data
 * @returns
 */
export function getCustomerapplyList(data) {
  return request({
    url: '/customer/bizloancustomer/customerapply/list',
    method: 'post',
    data
  })
}
/**
 * 商贷客户申请删除
 * @param {*} data
 * @returns
 */
export function delCustomerapply(params) {
  return request({
    url: '/customer/bizloancustomer/customerapply/delete',
    method: 'delete',
    params
  })
}
/**
 * 商贷客户申请导出
 * @param {*} data
 * @returns
 */
export function customerpplyOutPutExcel(data) {
  return request({
    url: '/customer/bizloancustomer/outPutExcel',
    method: 'post',
    data
  })
}
/**
 * 自定义显示列保存与显示
 * @param {*} data
 * @returns
 */
export function customerapplyUserDefined(params) {
  return request({
    url: '/customer/bizloancustomer/customerapply/userDefined',
    method: 'post',
    params
  })
}
